package com.jx.driving.transmission;

import java.util.Arrays;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.DynamicByteArrayAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 设置禁训状态
 * 
 * @author shenliuyang
 *
 *         2016年8月15日下午3:44:12
 */
@TerminalAnnotation
public class Terminal0x8502Transmission extends TimeTerminalTransmissionMessage {
	private static final long serialVersionUID = -4972385651669132572L;
	/**
	 * 1：可用，默认值 2：禁用
	 */
	@ByteAnnotation(order = 1)
	private short status;// 禁训状态
	@DynamicByteArrayAnnotation(value = 1, order = 2)
	private byte[] reminder;// 提示消息

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public byte[] getReminder() {
		return reminder;
	}

	public void setReminder(byte[] reminder) {
		this.reminder = reminder;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8502Transmission [status=").append(status).append(", reminder=")
				.append(Arrays.toString(reminder)).append("]");
		return builder.toString();
	}

}
